package com.addremoveitemtest;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by twopai on 2017/3/30.
 */

public class AddRemoveEntity {
    private int id;
    private String name;
    public static List<AddRemoveEntity>entityList=new ArrayList<>();
    public AddRemoveEntity(int id, String name) {
        this.id = id;
        this.name = name;
    }

    static{
        entityList.add(new AddRemoveEntity(0,"item0"));
        entityList.add(new AddRemoveEntity(1,"item1"));
        entityList.add(new AddRemoveEntity(2,"item2"));
        entityList.add(new AddRemoveEntity(3,"item3"));
        entityList.add(new AddRemoveEntity(4,"item4"));
        entityList.add(new AddRemoveEntity(5,"item5"));
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
